package top.xqf.homework.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.xqf.homework.base.BaseResult;
import top.xqf.homework.entity.PageBean;
import top.xqf.homework.entity.TbYsAtr;
import top.xqf.homework.entity.TbYsRole;
import top.xqf.homework.service.AtrService;
import top.xqf.homework.service.RoleService;

import java.util.List;

@RestController
@RequestMapping("/role")
public class RoleController {
    @Autowired
    private RoleService roleService;

    @GetMapping("/query")
    public BaseResult<List<TbYsRole>> query(TbYsRole tbYsRole, PageBean page) throws Exception {
        return roleService.query(tbYsRole,page);
    }
}
